package cn.itcast.hotel.service;

import cn.itcast.hotel.pojo.Hotel;
import cn.itcast.hotel.pojo.PageResult;
import cn.itcast.hotel.pojo.RequestParams;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface IHotelService extends IService<Hotel> {
  //搜索酒店数据
  PageResult search(RequestParams params);
  //联想功能
  List<String> getSuggestions(String prefix);
  //聚合
  Map<String, List<String>> filters(RequestParams params);

  void deleteById(Long id);

  void insertById(Long id);
}
